<template>
  <div class="header">
    <div class="header-content">
      <div class="header-title">
        <div class="title-text">{{ title }}</div>
        <div class="title-sub">{{ subtitle }}</div>
      </div>
      <div class="header-glow"></div>
    </div>
  </div>
</template>

<script setup lang="ts">
// 定义组件props
interface Props {
  title?: string
  subtitle?: string
}

// 设置默认props
withDefaults(defineProps<Props>(), {
  title: '主标题',
  subtitle: '副标题'
})
</script>

<style scoped>
.header {
  height: calc(100vh / 9);
  min-height: 70px;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.header::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/akitorSys.svg");
  background-size: 100% 100%;
  opacity: 0.5;
}

.header-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.header-title {
  color: white;
}

.title-text {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.title-sub {
  font-size: 14px;
  opacity: 0.9;
  letter-spacing: 2px;
  font-weight: 300;
}

.header-glow {
  position: absolute;
  width: 300px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
</style>